<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 缓存设置
// +----------------------------------------------------------------------

use restful\utils\Env;

return [
    // 默认缓存驱动
    'default' => 'redis',
    // 缓存连接方式配置
    'stores' => [
        'redis' => [
            'type' => 'redis',
            'host' => Env::get('redis.host', '127.0.0.1'),
            'port' => Env::get('redis.port', 6379),
            'prefix' => Env::get('redis.prefix', ''),
        ],
    ],
];
